﻿
$(function () {
    // 导出Excel
    $("#exorptExcel").on("click", function () {
        var form = $("<form>");//定义一个form表单
        form.attr("style", "display:none");
        form.attr("target", "");
        form.attr("method", "post");
        form.attr("action", "/Setting/ExportResult/?actionlist=" + $(this).attr("tip"));
        var input1 = $("<input>");
        input1.attr("type", "hidden");
        input1.attr("name", "exportData");
        input1.attr("value", (new Date()).getMilliseconds());
        $("body").append(form);//将表单放置在web中
        form.append(input1);
        form.submit();
    });

    // 导出Excel
    $("#exorptVotePerson").on("click", function () {
        var form = $("<form>");//定义一个form表单
        form.attr("style", "display:none");
        form.attr("target", "");
        form.attr("method", "post");
        form.attr("action", "/Setting/ExportVoters/?actionId=" + $(this).attr("tip"));
        var input1 = $("<input>");
        input1.attr("type", "hidden");
        input1.attr("name", "exportData");
        input1.attr("value", (new Date()).getMilliseconds());
        $("body").append(form);//将表单放置在web中
        form.append(input1);
        form.submit();
    });


});

